<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>公众号菜单管理</title>
    <#include "/header.html">
    <style>
        ol, ol li {
            list-style: none;
        }

        li {
            margin-top: 6px ;
            margin-bottom: 6px;
        }

        .fw {
            width: 100%;
        }

        .lw {
            width: 35%;
        }

        .sw {
            width: 25%;
        }
    </style>
</head>
<body>
    <div id="rrapp" v-cloak>
        <div class="grid-btn">
            <form class="form-inline">
                <div class="form-group">
                    <label for="selectUserGzhList">公众号</label>
                    <select class="form-control" id="selectUserGzhList" v-model="gzhCode">

                    </select>
                </div>
                <div class="form-group">
                    <label for="clientPlatformType">客户端平台类型</label>
                    <select class="form-control" id="clientPlatformType" v-model="wxMenu.matchRule.clientPlatformType">
                        <option value="0">安卓</option>
                        <option value="1">苹果</option>
                    </select>
                </div>
                <div class="form-group" style="float: right">
                    <label for="selectGzhMenuList">导入模板</label>
                    <select class="form-control" id="selectGzhMenuList" onchange="vm.updateTemplateView()">

                    </select>
                    <a class="btn btn-primary" @click="saveAsTemplate">保存为模板</a>
                </div>
            </form>
        </div>
        <div id="menu-content">
            <div class="col-sm-4">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <form class="form-inline">
                            <div class="form-group lw">
                                <input type="text" class="form-control" style="width: 100%" v-model="wxMenu.buttons[0].name" placeholder="菜单名称">
                            </div>
                            <div class="form-group sw">
                                <select class="form-control" style="width: 100%" v-model="wxMenu.buttons[0].type">
                                    <option value="">类型</option>
                                    <option value="view">跳转网页</option>
                                    <option value="click">点击事件</option>
                                </select>
                            </div>
                            <div class="form-group lw">
                                <select class="form-control" style="width: 100%">
                                    <option value="">链接/键</option>
                                </select>
                                <select class="form-control" style="width: 100%;display: none" v-model="wxMenu.buttons[0].url">
                                    <option value="">请选择链接</option>
                                    <option value="0">文章/视频</option>
                                    <option value="1">早晚安打卡</option>
                                    <option value="2">获客海报</option>
                                    <option value="3">人脉广场</option>
                                    <option value="4">团队管理</option>
                                    <option value="5">客户</option>
                                    <option value="6">会员权益</option>
                                    <option value="7">个人中心</option>
                                    <option value="8">开单学院</option>
                                    <option value="9">我的微站</option>
                                </select>
                                <select class="form-control" style="width: 100%;display: none" v-model="wxMenu.buttons[0].key">
                                    <option value="">请选择键</option>
                                    <option value="0">邀请有奖</option>
                                    <option value="1">联系客服</option>
                                    <option value="2">早晚安</option>
                                    <option value="3">添加文章或视频</option>
                                </select>
                            </div>
                        </form>
                    </div>
                    <ol>
                        <li>
                            <form class="form-inline">
                                <div class="form-group lw">
                                    <input type="text" class="form-control" style="width: 100%" v-model="wxMenu.buttons[0].subButtons[0].name" placeholder="菜单名称">
                                </div>
                                <div class="form-group sw">
                                    <select class="form-control" style="width: 100%" v-model="wxMenu.buttons[0].subButtons[0].type">
                                        <option value="">类型</option>
                                        <option value="view">跳转网页</option>
                                        <option value="click">点击事件</option>
                                    </select>
                                </div>
                                <div class="form-group lw">
                                    <select class="form-control" style="width: 100%">
                                        <option value="">链接/键</option>
                                    </select>
                                    <select class="form-control" style="width: 100%;display: none" v-model="wxMenu.buttons[0].subButtons[0].url">
                                        <option value="">请选择链接</option>
                                        <option value="0">文章/视频</option>
                                        <option value="1">早晚安打卡</option>
                                        <option value="2">获客海报</option>
                                        <option value="3">人脉广场</option>
                                        <option value="4">团队管理</option>
                                        <option value="5">客户</option>
                                        <option value="6">会员权益</option>
                                        <option value="7">个人中心</option>
                                        <option value="8">开单学院</option>
                                        <option value="9">我的微站</option>
                                    </select>
                                    <select class="form-control" style="width: 100%;display: none" v-model="wxMenu.buttons[0].subButtons[0].key">
                                        <option value="">请选择键</option>
                                        <option value="0">邀请有奖</option>
                                        <option value="1">联系客服</option>
                                        <option value="2">早晚安</option>
                                        <option value="3">添加文章或视频</option>
                                    </select>
                                </div>
                            </form>
                        </li>
                        <li>
                            <form class="form-inline">
                                <div class="form-group lw">
                                    <input type="text" class="form-control" style="width: 100%" v-model="wxMenu.buttons[0].subButtons[1].name" placeholder="菜单名称">
                                </div>
                                <div class="form-group sw">
                                    <select class="form-control" style="width: 100%" v-model="wxMenu.buttons[0].subButtons[1].type">
                                        <option value="">类型</option>
                                        <option value="view">跳转网页</option>
                                        <option value="click">点击事件</option>
                                    </select>
                                </div>
                                <div class="form-group lw">
                                    <select class="form-control" style="width: 100%">
                                        <option value="">链接/键</option>
                                    </select>
                                    <select class="form-control" style="width: 100%;display: none" v-model="wxMenu.buttons[0].subButtons[1].url">
                                        <option value="">请选择链接</option>
                                        <option value="0">文章/视频</option>
                                        <option value="1">早晚安打卡</option>
                                        <option value="2">获客海报</option>
                                        <option value="3">人脉广场</option>
                                        <option value="4">团队管理</option>
                                        <option value="5">客户</option>
                                        <option value="6">会员权益</option>
                                        <option value="7">个人中心</option>
                                        <option value="8">开单学院</option>
                                        <option value="9">我的微站</option>
                                    </select>
                                    <select class="form-control" style="width: 100%;display: none" v-model="wxMenu.buttons[0].subButtons[1].key">
                                        <option value="">请选择键</option>
                                        <option value="0">邀请有奖</option>
                                        <option value="1">联系客服</option>
                                        <option value="2">早晚安</option>
                                        <option value="3">添加文章或视频</option>
                                    </select>
                                </div>
                            </form>
                        </li>
                        <li>
                            <form class="form-inline">
                                <div class="form-group lw">
                                    <input type="text" class="form-control" style="width: 100%" v-model="wxMenu.buttons[0].subButtons[2].name" placeholder="菜单名称">
                                </div>
                                <div class="form-group sw">
                                    <select class="form-control" style="width: 100%" v-model="wxMenu.buttons[0].subButtons[2].type">
                                        <option value="">类型</option>
                                        <option value="view">跳转网页</option>
                                        <option value="click">点击事件</option>
                                    </select>
                                </div>
                                <div class="form-group lw">
                                    <select class="form-control" style="width: 100%">
                                        <option value="">链接/键</option>
                                    </select>
                                    <select class="form-control" style="width: 100%;display: none" v-model="wxMenu.buttons[0].subButtons[2].url">
                                        <option value="">请选择链接</option>
                                        <option value="0">文章/视频</option>
                                        <option value="1">早晚安打卡</option>
                                        <option value="2">获客海报</option>
                                        <option value="3">人脉广场</option>
                                        <option value="4">团队管理</option>
                                        <option value="5">客户</option>
                                        <option value="6">会员权益</option>
                                        <option value="7">个人中心</option>
                                        <option value="8">开单学院</option>
                                        <option value="9">我的微站</option>
                                    </select>
                                    <select class="form-control" style="width: 100%;display: none" v-model="wxMenu.buttons[0].subButtons[2].key">
                                        <option value="">请选择键</option>
                                        <option value="0">邀请有奖</option>
                                        <option value="1">联系客服</option>
                                        <option value="2">早晚安</option>
                                        <option value="3">添加文章或视频</option>
                                    </select>
                                </div>
                            </form>
                        </li>
                        <li>
                            <form class="form-inline">
                                <div class="form-group lw">
                                    <input type="text" class="form-control" style="width: 100%" v-model="wxMenu.buttons[0].subButtons[3].name" placeholder="菜单名称">
                                </div>
                                <div class="form-group sw">
                                    <select class="form-control" style="width: 100%" v-model="wxMenu.buttons[0].subButtons[3].type">
                                        <option value="">类型</option>
                                        <option value="view">跳转网页</option>
                                        <option value="click">点击事件</option>
                                    </select>
                                </div>
                                <div class="form-group lw">
                                    <select class="form-control" style="width: 100%">
                                        <option value="">链接/键</option>
                                    </select>
                                    <select class="form-control" style="width: 100%;display: none" v-model="wxMenu.buttons[0].subButtons[3].url">
                                        <option value="">请选择链接</option>
                                        <option value="0">文章/视频</option>
                                        <option value="1">早晚安打卡</option>
                                        <option value="2">获客海报</option>
                                        <option value="3">人脉广场</option>
                                        <option value="4">团队管理</option>
                                        <option value="5">客户</option>
                                        <option value="6">会员权益</option>
                                        <option value="7">个人中心</option>
                                        <option value="8">开单学院</option>
                                        <option value="9">我的微站</option>
                                    </select>
                                    <select class="form-control" style="width: 100%;display: none" v-model="wxMenu.buttons[0].subButtons[3].key">
                                        <option value="">请选择键</option>
                                        <option value="0">邀请有奖</option>
                                        <option value="1">联系客服</option>
                                        <option value="2">早晚安</option>
                                        <option value="3">添加文章或视频</option>
                                    </select>
                                </div>
                            </form>
                        </li>
                        <li>
                            <form class="form-inline">
                                <div class="form-group lw">
                                    <input type="text" class="form-control" style="width: 100%" v-model="wxMenu.buttons[0].subButtons[4].name" placeholder="菜单名称">
                                </div>
                                <div class="form-group sw">
                                    <select class="form-control" style="width: 100%" v-model="wxMenu.buttons[0].subButtons[4].type">
                                        <option value="">类型</option>
                                        <option value="view">跳转网页</option>
                                        <option value="click">点击事件</option>
                                    </select>
                                </div>
                                <div class="form-group lw">
                                    <select class="form-control" style="width: 100%">
                                        <option value="">链接/键</option>
                                    </select>
                                    <select class="form-control" style="width: 100%;display: none" v-model="wxMenu.buttons[0].subButtons[4].url">
                                        <option value="">请选择链接</option>
                                        <option value="0">文章/视频</option>
                                        <option value="1">早晚安打卡</option>
                                        <option value="2">获客海报</option>
                                        <option value="3">人脉广场</option>
                                        <option value="4">团队管理</option>
                                        <option value="5">客户</option>
                                        <option value="6">会员权益</option>
                                        <option value="7">个人中心</option>
                                        <option value="8">开单学院</option>
                                        <option value="9">我的微站</option>
                                    </select>
                                    <select class="form-control" style="width: 100%;display: none" v-model="wxMenu.buttons[0].subButtons[4].key">
                                        <option value="">请选择键</option>
                                        <option value="0">邀请有奖</option>
                                        <option value="1">联系客服</option>
                                        <option value="2">早晚安</option>
                                        <option value="3">添加文章或视频</option>
                                    </select>
                                </div>
                            </form>
                        </li>
                    </ol>
                </div>
            </div>
            <div class="col-sm-4">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <form class="form-inline">
                            <div class="form-group lw">
                                <input type="text" class="form-control" style="width: 100%" v-model="wxMenu.buttons[1].name" placeholder="菜单名称">
                            </div>
                            <div class="form-group sw">
                                <select class="form-control" style="width: 100%" v-model="wxMenu.buttons[1].type">
                                    <option value="">类型</option>
                                    <option value="view">跳转网页</option>
                                    <option value="click">点击事件</option>
                                </select>
                            </div>
                            <div class="form-group lw">
                                <select class="form-control" style="width: 100%">
                                    <option value="">链接/键</option>
                                </select>
                                <select class="form-control" style="width: 100%;display: none" v-model="wxMenu.buttons[1].url">
                                    <option value="">请选择链接</option>
                                    <option value="0">文章/视频</option>
                                    <option value="1">早晚安打卡</option>
                                    <option value="2">获客海报</option>
                                    <option value="3">人脉广场</option>
                                    <option value="4">团队管理</option>
                                    <option value="5">客户</option>
                                    <option value="6">会员权益</option>
                                    <option value="7">个人中心</option>
                                    <option value="8">开单学院</option>
                                    <option value="9">我的微站</option>
                                </select>
                                <select class="form-control" style="width: 100%;display: none" v-model="wxMenu.buttons[1].key">
                                    <option value="">请选择键</option>
                                    <option value="0">邀请有奖</option>
                                    <option value="1">联系客服</option>
                                    <option value="2">早晚安</option>
                                    <option value="3">添加文章或视频</option>
                                </select>
                            </div>
                        </form>
                    </div>
                    <ol>
                        <li>
                            <form class="form-inline">
                                <div class="form-group lw">
                                    <input type="text" class="form-control" style="width: 100%" v-model="wxMenu.buttons[1].subButtons[0].name" placeholder="菜单名称">
                                </div>
                                <div class="form-group sw">
                                    <select class="form-control" style="width: 100%" v-model="wxMenu.buttons[1].subButtons[0].type">
                                        <option value="">类型</option>
                                        <option value="view">跳转网页</option>
                                        <option value="click">点击事件</option>
                                    </select>
                                </div>
                                <div class="form-group lw">
                                    <select class="form-control" style="width: 100%">
                                        <option value="">链接/键</option>
                                    </select>
                                    <select class="form-control" style="width: 100%;display: none" v-model="wxMenu.buttons[1].subButtons[0].url">
                                        <option value="">请选择链接</option>
                                        <option value="0">文章/视频</option>
                                        <option value="1">早晚安打卡</option>
                                        <option value="2">获客海报</option>
                                        <option value="3">人脉广场</option>
                                        <option value="4">团队管理</option>
                                        <option value="5">客户</option>
                                        <option value="6">会员权益</option>
                                        <option value="7">个人中心</option>
                                        <option value="8">开单学院</option>
                                        <option value="9">我的微站</option>
                                    </select>
                                    <select class="form-control" style="width: 100%;display: none" v-model="wxMenu.buttons[1].subButtons[0].key">
                                        <option value="">请选择键</option>
                                        <option value="0">邀请有奖</option>
                                        <option value="1">联系客服</option>
                                        <option value="2">早晚安</option>
                                        <option value="3">添加文章或视频</option>
                                    </select>
                                </div>
                            </form>
                        </li>
                        <li>
                            <form class="form-inline">
                                <div class="form-group lw">
                                    <input type="text" class="form-control" style="width: 100%" v-model="wxMenu.buttons[1].subButtons[1].name" placeholder="菜单名称">
                                </div>
                                <div class="form-group sw">
                                    <select class="form-control" style="width: 100%" v-model="wxMenu.buttons[1].subButtons[1].type">
                                        <option value="">类型</option>
                                        <option value="view">跳转网页</option>
                                        <option value="click">点击事件</option>
                                    </select>
                                </div>
                                <div class="form-group lw">
                                    <select class="form-control" style="width: 100%">
                                        <option value="">链接/键</option>
                                    </select>
                                    <select class="form-control" style="width: 100%;display: none" v-model="wxMenu.buttons[1].subButtons[1].url">
                                        <option value="">请选择链接</option>
                                        <option value="0">文章/视频</option>
                                        <option value="1">早晚安打卡</option>
                                        <option value="2">获客海报</option>
                                        <option value="3">人脉广场</option>
                                        <option value="4">团队管理</option>
                                        <option value="5">客户</option>
                                        <option value="6">会员权益</option>
                                        <option value="7">个人中心</option>
                                        <option value="8">开单学院</option>
                                        <option value="9">我的微站</option>
                                    </select>
                                    <select class="form-control" style="width: 100%;display: none" v-model="wxMenu.buttons[1].subButtons[1].key">
                                        <option value="">请选择键</option>
                                        <option value="0">邀请有奖</option>
                                        <option value="1">联系客服</option>
                                        <option value="2">早晚安</option>
                                        <option value="3">添加文章或视频</option>
                                    </select>
                                </div>
                            </form>
                        </li>
                        <li>
                            <form class="form-inline">
                                <div class="form-group lw">
                                    <input type="text" class="form-control" style="width: 100%" v-model="wxMenu.buttons[1].subButtons[2].name" placeholder="菜单名称">
                                </div>
                                <div class="form-group sw">
                                    <select class="form-control" style="width: 100%" v-model="wxMenu.buttons[1].subButtons[2].type">
                                        <option value="">类型</option>
                                        <option value="view">跳转网页</option>
                                        <option value="click">点击事件</option>
                                    </select>
                                </div>
                                <div class="form-group lw">
                                    <select class="form-control" style="width: 100%">
                                        <option value="">链接/键</option>
                                    </select>
                                    <select class="form-control" style="width: 100%;display: none" v-model="wxMenu.buttons[1].subButtons[2].url">
                                        <option value="">请选择链接</option>
                                        <option value="0">文章/视频</option>
                                        <option value="1">早晚安打卡</option>
                                        <option value="2">获客海报</option>
                                        <option value="3">人脉广场</option>
                                        <option value="4">团队管理</option>
                                        <option value="5">客户</option>
                                        <option value="6">会员权益</option>
                                        <option value="7">个人中心</option>
                                        <option value="8">开单学院</option>
                                        <option value="9">我的微站</option>
                                    </select>
                                    <select class="form-control" style="width: 100%;display: none" v-model="wxMenu.buttons[1].subButtons[2].key">
                                        <option value="">请选择键</option>
                                        <option value="0">邀请有奖</option>
                                        <option value="1">联系客服</option>
                                        <option value="2">早晚安</option>
                                        <option value="3">添加文章或视频</option>
                                    </select>
                                </div>
                            </form>
                        </li>
                        <li>
                            <form class="form-inline">
                                <div class="form-group lw">
                                    <input type="text" class="form-control" style="width: 100%" v-model="wxMenu.buttons[1].subButtons[3].name" placeholder="菜单名称">
                                </div>
                                <div class="form-group sw">
                                    <select class="form-control" style="width: 100%" v-model="wxMenu.buttons[1].subButtons[3].type">
                                        <option value="">类型</option>
                                        <option value="view">跳转网页</option>
                                        <option value="click">点击事件</option>
                                    </select>
                                </div>
                                <div class="form-group lw">
                                    <select class="form-control" style="width: 100%">
                                        <option value="">链接/键</option>
                                    </select>
                                    <select class="form-control" style="width: 100%;display: none" v-model="wxMenu.buttons[1].subButtons[3].url">
                                        <option value="">请选择链接</option>
                                        <option value="0">文章/视频</option>
                                        <option value="1">早晚安打卡</option>
                                        <option value="2">获客海报</option>
                                        <option value="3">人脉广场</option>
                                        <option value="4">团队管理</option>
                                        <option value="5">客户</option>
                                        <option value="6">会员权益</option>
                                        <option value="7">个人中心</option>
                                        <option value="8">开单学院</option>
                                        <option value="9">我的微站</option>
                                    </select>
                                    <select class="form-control" style="width: 100%;display: none" v-model="wxMenu.buttons[1].subButtons[3].key">
                                        <option value="">请选择键</option>
                                        <option value="0">邀请有奖</option>
                                        <option value="1">联系客服</option>
                                        <option value="2">早晚安</option>
                                        <option value="3">添加文章或视频</option>
                                    </select>
                                </div>
                            </form>
                        </li>
                        <li>
                            <form class="form-inline">
                                <div class="form-group lw">
                                    <input type="text" class="form-control" style="width: 100%" v-model="wxMenu.buttons[1].subButtons[4].name" placeholder="菜单名称">
                                </div>
                                <div class="form-group sw">
                                    <select class="form-control" style="width: 100%" v-model="wxMenu.buttons[1].subButtons[4].type">
                                        <option value="">类型</option>
                                        <option value="view">跳转网页</option>
                                        <option value="click">点击事件</option>
                                    </select>
                                </div>
                                <div class="form-group lw">
                                    <select class="form-control" style="width: 100%">
                                        <option value="">链接/键</option>
                                    </select>
                                    <select class="form-control" style="width: 100%;display: none" v-model="wxMenu.buttons[1].subButtons[4].url">
                                        <option value="">请选择链接</option>
                                        <option value="0">文章/视频</option>
                                        <option value="1">早晚安打卡</option>
                                        <option value="2">获客海报</option>
                                        <option value="3">人脉广场</option>
                                        <option value="4">团队管理</option>
                                        <option value="5">客户</option>
                                        <option value="6">会员权益</option>
                                        <option value="7">个人中心</option>
                                        <option value="8">开单学院</option>
                                        <option value="9">我的微站</option>
                                    </select>
                                    <select class="form-control" style="width: 100%;display: none" v-model="wxMenu.buttons[1].subButtons[4].key">
                                        <option value="">请选择键</option>
                                        <option value="0">邀请有奖</option>
                                        <option value="1">联系客服</option>
                                        <option value="2">早晚安</option>
                                        <option value="3">添加文章或视频</option>
                                    </select>
                                </div>
                            </form>
                        </li>
                    </ol>
                </div>
            </div>
            <div class="col-sm-4">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <form class="form-inline">
                            <div class="form-group lw">
                                <input type="text" class="form-control" style="width: 100%" v-model="wxMenu.buttons[2].name" placeholder="菜单名称">
                            </div>
                            <div class="form-group sw">
                                <select class="form-control" style="width: 100%" v-model="wxMenu.buttons[2].type">
                                    <option value="">类型</option>
                                    <option value="view">跳转网页</option>
                                    <option value="click">点击事件</option>
                                </select>
                            </div>
                            <div class="form-group lw">
                                <select class="form-control" style="width: 100%">
                                    <option value="">链接/键</option>
                                </select>
                                <select class="form-control" style="width: 100%;display: none" v-model="wxMenu.buttons[2].url">
                                    <option value="">请选择链接</option>
                                    <option value="0">文章/视频</option>
                                    <option value="1">早晚安打卡</option>
                                    <option value="2">获客海报</option>
                                    <option value="3">人脉广场</option>
                                    <option value="4">团队管理</option>
                                    <option value="5">客户</option>
                                    <option value="6">会员权益</option>
                                    <option value="7">个人中心</option>
                                    <option value="8">开单学院</option>
                                    <option value="9">我的微站</option>
                                </select>
                                <select class="form-control" style="width: 100%;display: none" v-model="wxMenu.buttons[2].key">
                                    <option value="">请选择键</option>
                                    <option value="0">邀请有奖</option>
                                    <option value="1">联系客服</option>
                                    <option value="2">早晚安</option>
                                    <option value="3">添加文章或视频</option>
                                </select>
                            </div>
                        </form>
                    </div>
                    <ol>
                        <li>
                            <form class="form-inline">
                                <div class="form-group lw">
                                    <input type="text" class="form-control" style="width: 100%" v-model="wxMenu.buttons[2].subButtons[0].name" placeholder="菜单名称">
                                </div>
                                <div class="form-group sw">
                                    <select class="form-control" style="width: 100%" v-model="wxMenu.buttons[2].subButtons[0].type">
                                        <option value="">类型</option>
                                        <option value="view">跳转网页</option>
                                        <option value="click">点击事件</option>
                                    </select>
                                </div>
                                <div class="form-group lw">
                                    <select class="form-control" style="width: 100%">
                                        <option value="">链接/键</option>
                                    </select>
                                    <select class="form-control" style="width: 100%;display: none" v-model="wxMenu.buttons[2].subButtons[0].url">
                                        <option value="">请选择链接</option>
                                        <option value="0">文章/视频</option>
                                        <option value="1">早晚安打卡</option>
                                        <option value="2">获客海报</option>
                                        <option value="3">人脉广场</option>
                                        <option value="4">团队管理</option>
                                        <option value="5">客户</option>
                                        <option value="6">会员权益</option>
                                        <option value="7">个人中心</option>
                                        <option value="8">开单学院</option>
                                        <option value="9">我的微站</option>
                                    </select>
                                    <select class="form-control" style="width: 100%;display: none" v-model="wxMenu.buttons[2].subButtons[0].key">
                                        <option value="">请选择键</option>
                                        <option value="0">邀请有奖</option>
                                        <option value="1">联系客服</option>
                                        <option value="2">早晚安</option>
                                        <option value="3">添加文章或视频</option>
                                    </select>
                                </div>
                            </form>
                        </li>
                        <li>
                            <form class="form-inline">
                                <div class="form-group lw">
                                    <input type="text" class="form-control" style="width: 100%" v-model="wxMenu.buttons[2].subButtons[1].name" placeholder="菜单名称">
                                </div>
                                <div class="form-group sw">
                                    <select class="form-control" style="width: 100%" v-model="wxMenu.buttons[2].subButtons[1].type">
                                        <option value="">类型</option>
                                        <option value="view">跳转网页</option>
                                        <option value="click">点击事件</option>
                                    </select>
                                </div>
                                <div class="form-group lw">
                                    <select class="form-control" style="width: 100%">
                                        <option value="">链接/键</option>
                                    </select>
                                    <select class="form-control" style="width: 100%;display: none" v-model="wxMenu.buttons[2].subButtons[1].url">
                                        <option value="">请选择链接</option>
                                        <option value="0">文章/视频</option>
                                        <option value="1">早晚安打卡</option>
                                        <option value="2">获客海报</option>
                                        <option value="3">人脉广场</option>
                                        <option value="4">团队管理</option>
                                        <option value="5">客户</option>
                                        <option value="6">会员权益</option>
                                        <option value="7">个人中心</option>
                                        <option value="8">开单学院</option>
                                        <option value="9">我的微站</option>
                                    </select>
                                    <select class="form-control" style="width: 100%;display: none" v-model="wxMenu.buttons[2].subButtons[1].key">
                                        <option value="">请选择键</option>
                                        <option value="0">邀请有奖</option>
                                        <option value="1">联系客服</option>
                                        <option value="2">早晚安</option>
                                        <option value="3">添加文章或视频</option>
                                    </select>
                                </div>
                            </form>
                        </li>
                        <li>
                            <form class="form-inline">
                                <div class="form-group lw">
                                    <input type="text" class="form-control" style="width: 100%" v-model="wxMenu.buttons[2].subButtons[2].name" placeholder="菜单名称">
                                </div>
                                <div class="form-group sw">
                                    <select class="form-control" style="width: 100%" v-model="wxMenu.buttons[2].subButtons[2].type">
                                        <option value="">类型</option>
                                        <option value="view">跳转网页</option>
                                        <option value="click">点击事件</option>
                                    </select>
                                </div>
                                <div class="form-group lw">
                                    <select class="form-control" style="width: 100%">
                                        <option value="">链接/键</option>
                                    </select>
                                    <select class="form-control" style="width: 100%;display: none" v-model="wxMenu.buttons[2].subButtons[2].url">
                                        <option value="">请选择链接</option>
                                        <option value="0">文章/视频</option>
                                        <option value="1">早晚安打卡</option>
                                        <option value="2">获客海报</option>
                                        <option value="3">人脉广场</option>
                                        <option value="4">团队管理</option>
                                        <option value="5">客户</option>
                                        <option value="6">会员权益</option>
                                        <option value="7">个人中心</option>
                                        <option value="8">开单学院</option>
                                        <option value="9">我的微站</option>
                                    </select>
                                    <select class="form-control" style="width: 100%;display: none" v-model="wxMenu.buttons[2].subButtons[2].key">
                                        <option value="">请选择键</option>
                                        <option value="0">邀请有奖</option>
                                        <option value="1">联系客服</option>
                                        <option value="2">早晚安</option>
                                        <option value="3">添加文章或视频</option>
                                    </select>
                                </div>
                            </form>
                        </li>
                        <li>
                            <form class="form-inline">
                                <div class="form-group lw">
                                    <input type="text" class="form-control" style="width: 100%" v-model="wxMenu.buttons[2].subButtons[3].name" placeholder="菜单名称">
                                </div>
                                <div class="form-group sw">
                                    <select class="form-control" style="width: 100%" v-model="wxMenu.buttons[2].subButtons[3].type">
                                        <option value="">类型</option>
                                        <option value="view">跳转网页</option>
                                        <option value="click">点击事件</option>
                                    </select>
                                </div>
                                <div class="form-group lw">
                                    <select class="form-control" style="width: 100%">
                                        <option value="">链接/键</option>
                                    </select>
                                    <select class="form-control" style="width: 100%;display: none" v-model="wxMenu.buttons[2].subButtons[3].url">
                                        <option value="">请选择链接</option>
                                        <option value="0">文章/视频</option>
                                        <option value="1">早晚安打卡</option>
                                        <option value="2">获客海报</option>
                                        <option value="3">人脉广场</option>
                                        <option value="4">团队管理</option>
                                        <option value="5">客户</option>
                                        <option value="6">会员权益</option>
                                        <option value="7">个人中心</option>
                                        <option value="8">开单学院</option>
                                        <option value="9">我的微站</option>
                                    </select>
                                    <select class="form-control" style="width: 100%;display: none" v-model="wxMenu.buttons[2].subButtons[3].key">
                                        <option value="">请选择键</option>
                                        <option value="0">邀请有奖</option>
                                        <option value="1">联系客服</option>
                                        <option value="2">早晚安</option>
                                        <option value="3">添加文章或视频</option>
                                    </select>
                                </div>
                            </form>
                        </li>
                        <li>
                            <form class="form-inline">
                                <div class="form-group lw">
                                    <input type="text" class="form-control" style="width: 100%" v-model="wxMenu.buttons[2].subButtons[4].name" placeholder="菜单名称">
                                </div>
                                <div class="form-group sw">
                                    <select class="form-control" style="width: 100%" v-model="wxMenu.buttons[2].subButtons[4].type">
                                        <option value="">类型</option>
                                        <option value="view">跳转网页</option>
                                        <option value="click">点击事件</option>
                                    </select>
                                </div>
                                <div class="form-group lw">
                                    <select class="form-control" style="width: 100%">
                                        <option value="">链接/键</option>
                                    </select>
                                    <select class="form-control" style="width: 100%;display: none" v-model="wxMenu.buttons[2].subButtons[4].url">
                                        <option value="">请选择链接</option>
                                        <option value="0">文章/视频</option>
                                        <option value="1">早晚安打卡</option>
                                        <option value="2">获客海报</option>
                                        <option value="3">人脉广场</option>
                                        <option value="4">团队管理</option>
                                        <option value="5">客户</option>
                                        <option value="6">会员权益</option>
                                        <option value="7">个人中心</option>
                                        <option value="8">开单学院</option>
                                        <option value="9">我的微站</option>
                                    </select>
                                    <select class="form-control" style="width: 100%;display: none" v-model="wxMenu.buttons[2].subButtons[4].key">
                                        <option value="">请选择键</option>
                                        <option value="0">邀请有奖</option>
                                        <option value="1">联系客服</option>
                                        <option value="2">早晚安</option>
                                        <option value="3">添加文章或视频</option>
                                    </select>
                                </div>
                            </form>
                        </li>
                    </ol>
                </div>
            </div>

            <div class="col-sm-4"></div>
            <div class="col-sm-4" style="text-align: center">
                <button type="button" class="btn btn-warning" style="width: 45%" @click="reload">取消</button>
                <button type="button" class="btn btn-primary" style="width: 45%" @click="save">保存</button>
            </div>
            <div class="col-sm-4"></div>
        </div>
    </div>

    <div id="gzh_menu_template" style="display: none">
        <form class="form-horizontal">
            <div class="form-group">
                <div class="col-sm-2 control-label">模板名称</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" id="gzhMenuTemplateName" placeholder="模板名称" />
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <div class="col-sm-10">
                    <input type="button" class="btn-warning" value="返回" onclick="vm.cancle()" />
                    <input type="button" class="btn-primary" value="保存" onclick="vm.saveTemplate()" />
                </div>
            </div>
        </form>
    </div>

    <script src="${request.contextPath}/statics/js/modules/sys/gzhmenu.js?_${.now?long}"></script>
</body>
</html>